package com.sddz.pacs.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * <p>
 * 系统服务站信息表
 * </p>
 *
 * @author 时代电子
 * @since 2018-09-07
 */
public class SysStation extends Model<SysStation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 服务站名称
     */
    @NotBlank(message = "请输入服务站名称!")
    private String stationName;

    /**
     * 服务站编码
     */
    private String stationCode;

    /**
     * 服务站地址
     */
    private String stationAddress;

    /**
     * 创建时间/提交时间
     */
    private Date createDate;

    /**
     * 创建人ID
     */
    private String createId;

    /**
     * 修改人ID
     */
    private String updateId;

    /**
     * 备注
     */
    private Date updateDate;

    /**
     * 备注检查报告
     */
    private String remark;

    /**
     * 电话
     */
    @Pattern(regexp="^((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0,1,3,5,6,7,8])|(18[0-9])|(19[8|9]))\\d{8}$", message="请检查手机号格式是否正确")
    private String tel;


    /*
     * 状态  0 所有桥西区 1 所有桥东区站点
     * */
    private String state;

    /*
     * 父id
     * */
    private String  parentId;

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }
    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }
    public String getStationAddress() {
        return stationAddress;
    }

    public void setStationAddress(String stationAddress) {
        this.stationAddress = stationAddress;
    }
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }
    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysStation{" +
        "id=" + id +
        ", stationName=" + stationName +
        ", stationCode=" + stationCode +
        ", stationAddress=" + stationAddress +
        ", createDate=" + createDate +
        ", createId=" + createId +
        ", updateId=" + updateId +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        ", tel=" + tel +
        ", state=" + state +
        ", parentId=" + parentId +
        "}";
    }
}
